//
//  HaveNavigationBarVC.swift
//  ESVHome
//
//  Created by Vencent on 2020/11/12.
//

import Foundation

class HaveNavigationBarVC: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = .white
        self.isNavigationBarHidden = false
        
        let button = UIButton.init(frame: CGRect.init(x: 0, y: 100, width: 100, height: 100))
        button.setTitle("Test", for: .normal)
        button.setTitleColor(.blue, for: .normal)
        button.addTarget(self, action: #selector(pushAction), for: .touchUpInside)
        self.view.addSubview(button)
        
        log.debug("This is a debug message")
    }
    
    @objc func pushAction() {
        self.navigator.push(.noNavigation)
    }
}
